<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${cxt }/">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台登录</title>
<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="css/adminloginstyle.css" />
<style>
body {
	height: 100%;
	background: #00A5A5;
	overflow: hidden;
}

canvas {
	z-index: -1;
	position: absolute;
}
</style>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/verificationNumbers.js"></script>
<script src="js/Particleground.js"></script>
<script>
	$(document)
			.ready(
					function() {
						//粒子背景特效
						$('body').particleground({
							dotColor : '#5cbdaa',
							lineColor : '#5cbdaa'
						});
						/* //验证码
						createCode(); */
						//测试提交，对接程序删除即可
						var uname = $("input[name='uname']").val();
						var pwd = $("input[pwd='pwd']").val();

						if (uname.length != 0 && pwd.length != 0) {
							if (event.keyCode == 13) {
								$("#adminlogin").submit();
							}
						}

						$(".submit_btn")
								.click(
										function() {
											var uname = $("input[name='uname']")
													.val();
											var pwd = $("input[name='pwd']")
													.val();
											if (uname.length == 0
													|| pwd.length == 0) {
												document
														.getElementsByTagName("span")[0].innerHTML = "信息输入不完整！";
												return false;
											} else {
												$("#adminlogin").submit();
											}
	});

						/* 
						
						$(".submit_btn").click(function() {
							location.href = "index.html";
						}); */
					});
</script>
</head>
<body>
	<form action="adminLogin" method="post" id="adminlogin">
		<dl class="admin_login">
			<dt>
				<strong>溜溜后台管理系统</strong> <em>Management System</em>
			</dt>
			<dd class="user_icon">
				<input type="text" placeholder="账号" class="login_txtbx" name="uname" />
			</dd>
			<dd class="pwd_icon">
				<input type="password" placeholder="密码" class="login_txtbx"
					name="pwd" />
			</dd>
			<dd>
				<input type="button" value="立即登录" class="submit_btn" />
			</dd>
			<dd>
				<p>© 2018-2020 DeathGhost 版权所有</p>
				<p style="color: white">${error }<span></span>
				</p>
			</dd>
		</dl>
	</form>
</body>
</html>
